package com.ac.app.web.form;

import java.util.Date;

import com.caac.core.util.DateUtils;
import com.caac.core.web.form.BaseSearchForm;

/**
 * <p>Title: </p>
 * <p>Description: </p>
 * <p>Copyright: Copyright AgileCentury 2008</p>
 * <p>Company: AgileCentury </p>
 * @author <a href="mailto:ac@agilecentury.com">Agile</a>
 * @version 1.0
 */

public class PkLogSearchForm extends BaseSearchForm {
    private String srcName;
    private Date begTime1;
    private Date begTime2;
    private String begTime1String;
    private String begTime2String;

    public PkLogSearchForm() {
    }

    public String getBegTime1String() {
        return begTime1String;
    }

    public void setBegTime1String(String begTime1String) {
        this.begTime1String = begTime1String;
        try {
            this.begTime1 = DateUtils.convertToDate("yyyy-MM-dd HH:mm:ss",
                    begTime1String + " 00:00:00");
        } catch (Exception e) {
            this.begTime1 = null;
        }
    }

    public String getBegTime2String() {
        return begTime2String;
    }

    public void setBegTime2String(String begTime2String) {
        this.begTime2String = begTime2String;
        try {
            this.begTime2 = DateUtils.convertToDate("yyyy-MM-dd HH:mm:ss",
                    begTime2String + " 23:59:59");
        } catch (Exception e) {
            this.begTime2 = null;
        }
    }

    public String getSrcName() {
        return srcName;
    }

    public void setSrcName(String srcName) {
        this.srcName = srcName;
    }

    public Date getBegTime1() {
        return begTime1;
    }

    public Date getBegTime2() {
        return begTime2;
    }
}
